package com.cyx.entity;

import java.io.Serializable;

public class SuccessKilledMultiKeyClass implements Serializable {
    private long seckillId;

    public SuccessKilledMultiKeyClass() {
    }

    public SuccessKilledMultiKeyClass(long seckillId, long userPhone) {

        this.seckillId = seckillId;
        this.userPhone = userPhone;
    }
    /* 用户的手机号码*/

    public void setSeckillId(long seckillId) {
        this.seckillId = seckillId;
    }

    public void setUserPhone(long userPhone) {
        this.userPhone = userPhone;
    }

    public long getSeckillId() {

        return seckillId;
    }

    public long getUserPhone() {
        return userPhone;
    }

    private long userPhone;

    @Override
    public boolean equals(Object obj) {
        if(obj==this) return true;
        if(!(obj instanceof SuccessKilledMultiKeyClass)) return false;
        SuccessKilledMultiKeyClass skmkc= (SuccessKilledMultiKeyClass) obj;
        return skmkc.seckillId==seckillId&&skmkc.userPhone==userPhone;
    }

    @Override
    public int hashCode() {
        int result = 17;
        result=result*31+(int)seckillId;
        result=result*31+(int)userPhone;
        return result;
    }
}
